<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Models_Usermanagement_Permissions</title>
			<link rel="stylesheet" href="../../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Models_Usermanagement_Permissions</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Permissions management model</p>
	<ul class="tags">
				<li><span class="field">author:</span> Konstantin Shamko &lt;<a href="mailto:konstantin.shamko@gmail.com">konstantin.shamko@gmail.com</a>&gt;</li>
				<li><span class="field">version:</span> 0.0.1</li>
				<li><span class="field">copyright:</span> Copyright (c) 2009 Konstantin Shamko</li>
				<li><span class="field">license:</span> New</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_app---Models---Usermanagement---Permissions.php.html">/app/Models/Usermanagement/Permissions.php</a> (line <span class="field">14</span>)
		</p>
		
				
		<pre>Zend_Db_Table_Abstract
   |
   --<a href="../../Bel/Bel_Model_Abstract.html">Bel_Model_Abstract</a>
      |
      --Models_Usermanagement_Permissions</pre>
	
			</div>
</div>



	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<div class="var-summary">
																								<div class="var-title">
					<span class="var-type">array</span>
					<a href="#$_referenceMap" title="details" class="var-name">$_referenceMap</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																												
												<div class="method-definition">
											<span class="method-result">Models_Usermanagement_Permissions</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											([<span class="var-type">array</span>&nbsp;<span class="var-name">$array</span> = <span class="var-default">array()</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#addPermissions" title="details" class="method-name">addPermissions</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$group_id</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$newactions</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$controller_or_module_id</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">int</span>
										<a href="#getPermissionByGroupAndAction" title="details" class="method-name">getPermissionByGroupAndAction</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$group_id</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$action_id</span>)
									</div>
								</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="var$_referenceMap" id="$_referenceMap"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$_referenceMap</span>
			 = <span class="var-default">array (<br />									 'Group' =&gt; <br />											array ('columns' =&gt; 'user_group_id',<br />												   'refTableClass' =&gt; 'Models_Usermanagement_Groups',<br />									   			   'refColumns' =&gt; 'user_group_id', <br />												   'onDelete' =&gt; self::CASCADE<br />									   			   ),'Modules'=&gt;array('columns'=&gt;'module_id','refTableClass'=&gt;'Models_Modules','refColumns'=&gt;'module_id','onDelete'=&gt;self::CASCADE),)</span>			(line <span class="line-number">20</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Array of many-to-one references with groups &amp; modules table</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
							<h4>Inherited Variables</h4>
				<A NAME='inherited_vars'><!-- --></A>
									<p>Inherited from <span class="classname"><a href="../../Bel/Bel_Model_Abstract.html">Bel_Model_Abstract</a></span></p>
					<blockquote>
													<span class="var-title">
								<span class="var-name"><a href="../../Bel/Bel_Model_Abstract.html#var$_db">Bel_Model_Abstract::$_db</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Bel/Bel_Model_Abstract.html#var$_items_on_page">Bel_Model_Abstract::$_items_on_page</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Bel/Bel_Model_Abstract.html#var$_name">Bel_Model_Abstract::$_name</a></span><br>
							</span>
											</blockquote> 
										
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="method__construct" id="__construct"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">41</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constructor. Sets table name &amp; primary key</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Models_Usermanagement_Permissions</span>
		<span class="method-name">
			__construct
		</span>
					([<span class="var-type">array</span>&nbsp;<span class="var-name">$array</span> = <span class="var-default">array()</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$array</span><span class="var-description">: - see Zend_Db_Table_Abstract for details</span>			</li>
				</ul>
		
			<hr class="separator" />
		<div class="notes">Redefinition of:</div>
		<dl>
			<dt><a href="../../Bel/Bel_Model_Abstract.html#method__construct">Bel_Model_Abstract::__construct()</a></dt>
						<dd>Constructor.</dd>
					</dl>
			
	</div>
<a name="methodaddPermissions" id="addPermissions"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">addPermissions</span> (line <span class="line-number">54</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Adds permissions</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			addPermissions
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$group_id</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$newactions</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$controller_or_module_id</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$group_id</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$newactions</span><span class="var-description">: - array modules to aloow access to</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$controller_or_module_id</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetPermissionByGroupAndAction" id="getPermissionByGroupAndAction"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getPermissionByGroupAndAction</span> (line <span class="line-number">86</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns permission for group to action</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">int</span>
		<span class="method-name">
			getPermissionByGroupAndAction
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$group_id</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$action_id</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$group_id</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$action_id</span>			</li>
				</ul>
		
			
	</div>
							<h4>Inherited Methods</h4>
				<a name='inherited_methods'><!-- --></a>	
									<!-- =========== Summary =========== -->
					<p>Inherited From <span class="classname"><a href="../../Bel/Bel_Model_Abstract.html">Bel_Model_Abstract</a></span></p>
					<blockquote>
													<span class="method-name"><a href="../../Bel/Bel_Model_Abstract.html#method__construct">Bel_Model_Abstract::__construct()</a></span><br>
													<span class="method-name"><a href="../../Bel/Bel_Model_Abstract.html#methodaddEntry">Bel_Model_Abstract::addEntry()</a></span><br>
													<span class="method-name"><a href="../../Bel/Bel_Model_Abstract.html#methodbulkDeleteById">Bel_Model_Abstract::bulkDeleteById()</a></span><br>
													<span class="method-name"><a href="../../Bel/Bel_Model_Abstract.html#methoddeleteEntryById">Bel_Model_Abstract::deleteEntryById()</a></span><br>
													<span class="method-name"><a href="../../Bel/Bel_Model_Abstract.html#methodgetAll">Bel_Model_Abstract::getAll()</a></span><br>
													<span class="method-name"><a href="../../Bel/Bel_Model_Abstract.html#methodgetEntryById">Bel_Model_Abstract::getEntryById()</a></span><br>
													<span class="method-name"><a href="../../Bel/Bel_Model_Abstract.html#methodgetIdCol">Bel_Model_Abstract::getIdCol()</a></span><br>
													<span class="method-name"><a href="../../Bel/Bel_Model_Abstract.html#methodgetItemsOnPage">Bel_Model_Abstract::getItemsOnPage()</a></span><br>
													<span class="method-name"><a href="../../Bel/Bel_Model_Abstract.html#methodgetPaging">Bel_Model_Abstract::getPaging()</a></span><br>
													<span class="method-name"><a href="../../Bel/Bel_Model_Abstract.html#methodsetItemsOnPage">Bel_Model_Abstract::setItemsOnPage()</a></span><br>
													<span class="method-name"><a href="../../Bel/Bel_Model_Abstract.html#methodsetSelectMethod">Bel_Model_Abstract::setSelectMethod()</a></span><br>
													<span class="method-name"><a href="../../Bel/Bel_Model_Abstract.html#methodupdateEntry">Bel_Model_Abstract::updateEntry()</a></span><br>
													<span class="method-name"><a href="../../Bel/Bel_Model_Abstract.html#method_prepareRequest">Bel_Model_Abstract::_prepareRequest()</a></span><br>
													<span class="method-name"><a href="../../Bel/Bel_Model_Abstract.html#method_selectQuery">Bel_Model_Abstract::_selectQuery()</a></span><br>
											</blockquote>
										
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Mon, 01 Mar 2010 18:58:52 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.0</a>
	</p>
	</div></body>
</html>